import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'
const sysMgrKey = 'SYS_MGR_KEY'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function setSysMgr(sysMgr) {
  return Cookies.set(sysMgrKey, sysMgr)
}

export function getSysMgr() {
  return Cookies.get(sysMgrKey)
}

export function removeSysMgr() {
  return Cookies.remove(sysMgrKey)
}
